import request from '@/utils/request'

/* 订单-列表 */
export function getOrders(params) {
  return request({
    url: '/orders',
    method: 'get',
    params
  })
}

/* 订单-订单详情 */
export function detailOrders(params) {
  return request({
    url: '/orders/detail',
    method: 'get',
    params
  })
}

/* 订单-订单超时处理 */
export function overtimeOrders(params) {
  return request({
    url: '/orders/overtime',
    method: 'get',
    params
  })
}

/* 订单待支付页码去支付 */
export function directPayOrders(data) {
  return request({
    url: '/orders/direct_pay',
    method: 'post',
    data
  })
}

